Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x] Support views in SQLServerGrammar #37348

Merged
merged 1 commit into from
May 11, 2021
Merged

Conversation

madbarron
Copy link
Contributor

8.x version of #37307

SqlServerGrammar assumes that the model is backed by a table, but some unfortunate souls attach to views in SQL Server. Since we now check mass assignment keys against the database columns, we need to be able to fetch the columns for views.

This revision removes the "table" object type specification when hitting the DB for schema info, so that views also work. SQL Server will not allow multiple objects to have the same name in the same namespace, so this should not introduce any problems with matching multiple items.

Commit which introduced the problem: 70d261d

@taylorotwell taylorotwell merged commit 4ffb75c into laravel:8.x May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants